#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>

#ifndef STRUCTS
#define STRUCTS

enum p_type {
	UPDATE=0,				//0
	UPDATE_ACK,			//1
	FRIENDS_REQ,		//2
	FRIENDS_RESP,		//3
	HISTORY_REQ,		//4
	HISTORY_RESP,		//5
	LEAVE				//6
} packet_type;

typedef struct header_struct{
	uint8_t type;
	uint8_t z1;
	uint16_t id;
	uint32_t length;
} header;

typedef struct location_struct{
	float latitude;
	float longitude;
	float altitude;
	uint32_t u_id;
	uint32_t padding;
} location;

#endif
